Spring MVC Beginner's Guide by 2014

Spring MVC Beginner's Guide by 2014

Author:2014
Language: eng
Format: mobi
Publisher: Packt Publishing


Working with the handler exception resolver

Spring MVC provides several approaches to exception handling. In Spring, one of the main exception handling constructs is the HandlerExceptionResolver interface (org.springframework.web.servlet.HandlerExceptionResolver). Any objects that implement this interface can resolve exceptions that are thrown during controller mapping or execution. The HandlerExceptionResolver implementers are typically registered as beans in the web application context.

Spring MVC creates two such HandlerExceptionResolver implementations by default to facilitate exception handling:

ResponseStatusExceptionResolver is created to support the @ResponseStatus annotation

ExceptionHandlerExceptionResolver is created to support the @ExceptionHandler annotation



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.